#pragma once

#include "ProtocolDriver.h"

class CNewProtocolCurtis : public CDriverProtocol
{
public:
	CNewProtocolCurtis();
	virtual ~CNewProtocolCurtis(){}
	virtual void setMotorId(uint32_t id) {
		_motorId = id;
	}
	
	virtual bool encode(motorDriverCmdType ct, int32_t val);
	//virtual int decode(motorDriverCmdType (&ct)[10], int32_t (&val)[10], const CanRxMsg&);
	//virtual bool getTargetPosMsg(CanTxMsg* tx_msg, int& num);
	virtual void setSteerRange(uint32_t range){ _curtis_steer_range = range * 5;}
private:
	static int16_t _speedVal;
	static int16_t _forkVel;
	static int16_t _lift_flag;
	static int16_t _lower_flag;
	static uint32_t _curtis_steer_range;
};
